package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysAdminRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysAdminRoleMapper extends BaseMapper<SysAdminRole> {
    List<SysAdminRole> findAll();

    int updateRoleByAdminId(int adminId, int roleId);

    int countByAdminId(int adminId);

    SysAdminRole findByAdminId(int adminId);

    int insertOld(int adminId, int roleId);

    int deleteByIdOld(int id);

    int deleteByAdminId(int adminId);

    int deleteByRoleId(int roleId);

    int updateStatus(int status,int id);
}
